package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.CheckGroup;

import java.util.List;



/*服务接口*/

public interface CheckGroupService {
    //增加检查组
    public Result add(CheckGroup checkGroup,Integer[] checkitemIds);

    //分页查询
    public PageResult findPage(QueryPageBean queryPageBean);

    //根据id查找检查组
    public Result findById(int id);
    //查找检查组对应的检查项
    public List<Integer> findCheckGroupIdAndCheckItemId(int checkgroupId);

    public Result edit(CheckGroup checkGroup, Integer[] checkitemIds);
    //删除检查组信息
    public Result deleteById(Integer id);

    Result finAll();
}
